// \src\i18n\vue_pbulic.ts
import { createI18n } from 'vue-i18n'
// 语言包
import zhCn from '@/assets/i18n/zh-Cn.json'
import en from '@/assets/i18n/en.json'
import { getItem } from '@/utils/auth'
const i18n = createI18n({
  locale: (getItem('localeLang') as string) || 'zhCn',
  fallbackLocale: 'zhCn',
  globalInjection: true,
  legacy: false,
  messages: {
    zhCn,
    en
  }
})

export default i18n
